import requests

url = "http://www.baidu.com/v1/user/reg"
data = {"username":"qwertyuiopasdfghjklzxcvbnm", "password":"sssss"}
headers = {"Content-Type": "application/json"}

response = requests.post(url, data, headers=headers).text